package com.zjjt.dc.modules.datacatch.service.lw.impl;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zjjt.dc.modules.datacatch.entity.lw.DcCatchDataLwCustomer;
import com.zjjt.dc.modules.datacatch.mapper.IDcCatchDataLwCustomerMapper;
import com.zjjt.dc.modules.datacatch.service.lw.IDcCatchDataLwCustomerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class DcCatchDataLwCustomerServiceImpl extends ServiceImpl<IDcCatchDataLwCustomerMapper, DcCatchDataLwCustomer> implements IDcCatchDataLwCustomerService {
    @Override
    public List<DcCatchDataLwCustomer> getCreateById(String id) {
        DcCatchDataLwCustomer entity = new DcCatchDataLwCustomer();
        entity.setCreateBy(Long.parseLong(id));
        QueryWrapper<DcCatchDataLwCustomer> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("create_by", id);
        return baseMapper.selectList(queryWrapper);
    }

}
